package com.vortex.cloud.zhsw.xinyang.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author mumuwen
 * @date 2020-09-14 2:46 下午
 */
@Data
public class NameValueDTO implements Serializable {


    private String id;
    private String lid;
    private String name;
    private String value;
    private BigDecimal decimalValue;
    private String itemCode;
    private String weight;
    private Integer score;
    private String code;
    private String facilityId;
    private Integer level;
    private Integer type;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime time;
    private Integer count;

    private List<NameValueDTO> childs;

    public NameValueDTO() {
    }

    public NameValueDTO(String id, String name, String value) {
        this.id = id;
        this.name = name;
        this.value = value;
    }

    public NameValueDTO(String lid, String name) {
        this.lid = lid;
        this.name = name;
    }

}
